home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2 Examples.sit / Raven 1.2 Examples / Quill / Source / ToolWindowProxy.cpp < prev    next >
Text File  |  1997-08-09  |  2KB  |  73 lines

  1. /*
  2.  *  File:       ToolWindowProxy.cpp
  3.  *  Summary:       A stand in for TToolWindow that behaves better when it's being edited.
  4.  *  Written by: Jesse Jones
  5.  *
  6.  *  Copyright ゥ 1996 Jesse Jones. 
  7.  *    For conditions of distribution and use, see copyright notice in ZTypes.h  
  8.  *
  9.  *  Change History (most recent first):    
  10.  *
  11.  *         <->    12/24/96    JDJ        Created
  12.  */
  13.  
  14. #include "ToolWindowProxy.h"
  15.  
  16. #include <ZToolWindow.h>
  17. #include <ZStream.h>
  18.  
  19.  
  20. // ===================================================================================
  21. //    class CToolWindowProxy
  22. // ===================================================================================
  23.  
  24. static TReanimatorRegister<CToolWindowProxy> sToolWindowProxyRegistrar;
  25.  
  26. static TReanimatorRegister<CToolWindowProxy> sWindowRegistrar("TToolWindow");
  27.  
  28. //---------------------------------------------------------------
  29. //
  30. // CToolWindowProxy::~CToolWindowProxy
  31. //
  32. //---------------------------------------------------------------
  33. CToolWindowProxy::~CToolWindowProxy()
  34. {
  35.     // Delete the view container while we're still the right type.
  36.     this->DoDeleteSubPanes();
  37. }
  38.  
  39.  
  40. //---------------------------------------------------------------
  41. //
  42. // CToolWindowProxy::CToolWindowProxy ()
  43. //
  44. //---------------------------------------------------------------
  45. CToolWindowProxy::CToolWindowProxy() 
  46. {
  47. }
  48.  
  49.             
  50. //---------------------------------------------------------------
  51. //
  52. // CToolWindowProxy::CToolWindowProxy (SWindowInfo, MCommander*)
  53. //
  54. //---------------------------------------------------------------
  55. CToolWindowProxy::CToolWindowProxy(const SWindowInfo& info, MCommander* superCommander) : CWindowProxy(info, superCommander)
  56. {
  57. }
  58.  
  59.             
  60. //---------------------------------------------------------------
  61. //
  62. // CToolWindowProxy::Create                                [static]
  63. //
  64. //---------------------------------------------------------------
  65. MReanimatable* CToolWindowProxy::Create(MReanimatable*)
  66. {
  67.     if (msUseProxy)
  68.         return new CToolWindowProxy;
  69.     else
  70.         return new TToolWindow;
  71. }
  72.  
  73.